import ajax from '../../utils/request';
Page({
    data: {
        avatarUrl: '../../img/haitun.png',
        nickName: '立即登录'
    },
    onLoad(options) {

    },
    async wxLogin() {
        let {
            code
        } = await wx.login();
        let res = await ajax('http://43.136.85.99:3008/user/wxlogin', {
            code
        });
        console.log(res)
        wx.setStorageSync('token', token)
    },
    selectHeade(e) {
        console.log(e)

    },
    getWechatNickname(e) {
        console.log(e)

    }
})